package com.kha.listone.common.model;

import java.util.Date;

public class TaskModel {

	public static final short RECURRENCE_ONCE = 0;
	public static final short RECURRENCE_DAILY = 1;
	public static final short RECURRENCE_WEEKLY = 2;

	public static final short IMPORTANT_LOW = 0;
	public static final short IMPORTANT_NORMAL = 1;
	public static final short RECURRENCE_HIGH = 2;

	public static final short SUN = 0;
	public static final short MON = 1;
	public static final short TUE = 2;
	public static final short WED = 3;
	public static final short THU = 4;
	public static final short FRI = 5;
	public static final short SAT = 6;
	
	public static final short DONE = 1;
	public static final short UNDONE = 0;
	
	private String taskName = null;
	private Date dueDate = null;
	private short recurrenceStatus = RECURRENCE_ONCE;
	private short importantRate = IMPORTANT_NORMAL;
	private String dateRecurrence = String.valueOf(SUN);
	private Date deadlineDate = null;
	private String taskNote = null;
	private String taskTags = null;
	private short done = 0;

	public TaskModel() {
		taskName = "New Task";
		dueDate = new Date();
		deadlineDate = new Date(dueDate.getTime() + 1000 * 60 * 60 * 24);
		taskNote = "Note...";
		taskTags = "";
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public short getRecurrenceStatus() {
		return recurrenceStatus;
	}

	public void setRecurrenceStatus(short recurrenceStatus) {
		this.recurrenceStatus = recurrenceStatus;
	}

	public String getDateRecurrence() {
		return dateRecurrence;
	}

	public void setDateRecurrence(String dateRecurrence) {
		this.dateRecurrence = dateRecurrence;
	}

	public Date getDeadlineDate() {
		return deadlineDate;
	}

	public void setDeadlineDate(Date deadlineDate) {
		this.deadlineDate = deadlineDate;
	}

	public String getTaskNote() {
		return taskNote;
	}

	public void setTaskNote(String taskNote) {
		this.taskNote = taskNote;
	}

	public String getTaskTags() {
		return taskTags;
	}

	public void setTaskTags(String taskTags) {
		this.taskTags = taskTags;
	}

	public short getImportantRate() {
		return importantRate;
	}

	public void setImportantRate(short importantRate) {
		this.importantRate = importantRate;
	}

	public short getDone() {
		return done;
	}

	public void setDone(short done) {
		this.done = done;
	}

}
